package com.atguigu.staservice.client;

import com.atguigu.commonutils.Result;
import com.atguigu.staservice.client.impl.UcenterFileDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-educenter", fallback = UcenterFileDegradeFeignClient.class)
public interface UcenterClient {
    /**
     * @param day
     * @return
     */
    @GetMapping("/edu/center/member/countRegister/{day}")
    Integer countRegister(@PathVariable("day") String day);
}
